<%@ page contentType="text/html; charset=utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>修改账号</title>
<style type="text/css">
.errors {
	background-color: #FFCCCC;
	border: 1px solid #CC0000;
	width: 220px;
	margin-bottom: 8px;
	margin: auto;
	top: 15;
	left: 0;
	right: 0;
}

.errors li {
	list-style: none;
}
</style>
</head>
<body>
	<h1>
		<center>修改课程信息</center>
	</h1>
	<s:if test="hasActionErrors()">
		<div class="errors">
			<s:actionerror />
		</div>
	</s:if>
	<s:form action="coursepage!updateCourse.action" method="post"
		theme="simple" name="add">
		<table border=1 align="center" style="background-color:#D3D3D3">
			<s:hidden name="course.id" />
			<tr>
				<td>课程代码<font color="red">*</font>
				</td>
				<td><s:textfield name="course.courseCode"/> <s:fielderror
						fieldName="courseCodeInfo" />
				</td>
			</tr>
			<tr>
				<td>课程名<font color="red">*</font></td>
				<td><s:textfield name="course.courseName"/>
				<s:fielderror fieldName="courseNameInfo" />
				</td>
			</tr>
			<tr>
				<td>课时<font color="red">*</font>
				</td>
				<td><s:textfield name="course.period"/>
				<s:fielderror fieldName="periodInfo" />
				</td>
			</tr>
			<tr>
				<td>学分<font color="red">*</font></td>
				<td><s:textfield name="course.credit"/>
				<s:fielderror fieldName="creditInfo" />
				</td>
			</tr>
			<tr align="center">
				<td colspan="2"><s:submit value="修改" name="tijao" /> <s:reset
						value="返回" name="fanhui"
						onclick="window.location.href='coursepage!listCourse.action';" />
				</td>
			</tr>
		</table>
	</s:form>
</body>
</html>
